package edu.lingnan.house.controller;

import edu.lingnan.house.service.HouseService;
import edu.lingnan.house.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class IndexController {
    @Autowired
    private HouseService houseService;
    @GetMapping("/show")
    @ResponseBody
    public Result showIndex(){
        return houseService.showIndex();
    }

}
